package com.freight.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author guoys
 * @create 2021/6/9
 */
@Data
public class FleetInfoVo extends UserVo {


    @ApiModelProperty(value = "车队id")
    private Long groupId;

    @ApiModelProperty(value = "车队名称")
    private String describeInfo;

    @ApiModelProperty(value = "司机姓名")
    private String driverName;

    @ApiModelProperty(value = "司机手机")
    private String driverPhone;

    @ApiModelProperty(value = "车队类型")
    private String grouptype;

    //车队车辆数-查询车辆与车队关系表 该车队 一共有多少个车辆
    @ApiModelProperty(value = "车队下车辆数量")
    public Long vehicleCnt;

    //车队司机数-车型司机与车队关系表 该车队 一共有多少个司机
    @ApiModelProperty(value = "车队下司机数量")
    public Long driverCnt;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String createTime;

    @ApiModelProperty(value = "代收协议")
    private Long collectionId;

}
